package ModelLayer;
/**
 * Makes it possible to set the amount of an item in a sale
 * 
 * @author (Gruppe 3)
 */
public class PartSale
{   
    private Item item;
    private int amount;
    
   /**
    * constructor
    */
    public PartSale(Item item, int amount)
    {
        this.item = item;
        this.amount = amount;
    }
    
    // set / get methods
    public void setItem(Item item)
    {
        this.item = item;
    }
    
    public Item getItem()
    {
        return item;
    }
    
    public void setAmount(int amount)
    {
        this.amount = amount;
    }
    
    public int getAmount()
    {
        return amount;
    }
    
    
}
